package com.dl.study.builder.payload.process.instance;

import java.util.Set;

/**
 * create by chongyahhh
 * 2020/4/4
 */
public class ProcessInstanceQueryPayload {
    private Set<String> processDefinitionKeys;
    private Set<String> processDefinitionIds;
    private boolean suspendedOnly;
    private boolean activeOnly;

    public ProcessInstanceQueryPayload() {
    }

    public Set<String> getProcessDefinitionKeys() {
        return processDefinitionKeys;
    }

    public void setProcessDefinitionKeys(Set<String> processDefinitionKeys) {
        this.processDefinitionKeys = processDefinitionKeys;
    }

    public Set<String> getProcessDefinitionIds() {
        return processDefinitionIds;
    }

    public void setProcessDefinitionIds(Set<String> processDefinitionIds) {
        this.processDefinitionIds = processDefinitionIds;
    }

    public boolean isSuspendedOnly() {
        return suspendedOnly;
    }

    public void setSuspendedOnly(boolean suspendedOnly) {
        this.suspendedOnly = suspendedOnly;
    }

    public boolean isActiveOnly() {
        return activeOnly;
    }

    public void setActiveOnly(boolean activeOnly) {
        this.activeOnly = activeOnly;
    }

    public ProcessInstanceQueryPayload withProcessDefinitionKeys(Set<String> processDefinitionKeys) {
        this.processDefinitionKeys = processDefinitionKeys;
        return this;
    }

    public ProcessInstanceQueryPayload withProcessDefinitionIds(Set<String> processDefinitionIds) {
        this.processDefinitionIds = processDefinitionIds;
        return this;
    }

    public ProcessInstanceQueryPayload withSuspendedOnly(boolean suspendedOnly) {
        this.suspendedOnly = suspendedOnly;
        return this;
    }

    public ProcessInstanceQueryPayload withActiveOnly(boolean activeOnly) {
        this.activeOnly = activeOnly;
        return this;
    }
}
